home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1996-01-17 | 1.7 KB | 49 lines |
- ' ************************************* Commands used:
- ' * * Td Stars Bank Td Stars Origin
- ' * Amcaf Examples * Td Stars Limit Td Stars Double Do
- ' * Td Stars 1 V1.0 * Td Planes
- ' * Written by Chris Hodges * Td Accelerate Off
- ' * * Td Gravity
- ' ************************************* Td Init
- '
- ' Remove the mousepointer from screen.
- Hide
- ' Open a nice little screen with 8 colours.
- Screen Open 0,320,256,8,Lowres
- Curs Off : Flash Off : Paper 0 : Pen 1 : Cls
- ' Load a backgroundpicture.
- Load Iff "data/inteloutside.iff"
- ' Set up the palette.
- ' We use the last two planes, so we need the colours 2,4,6 for the stars.
- Palette 0,$20,$444,$494,$999,$9D9,$DDD,$DFD
- ' Enable Double Buffering to avoid flickering.
- Double Buffer
- Autoback 0
- ' Limit the mouse to the screen boundaries.
- Wait Vbl : Limit Mouse
- ' Define a bank for the stars. If you have a turbo board, you can increase
- ' the amount of stars.
- Extension_8_0A7E 9,100
- ' Limit the stars to the screen.
- Extension_8_0A94
- ' Set the planes for usage with Td Stars.
- Extension_8_0BCC 1,2
- ' Turn off the acceleration. Test it also with acceleration.
- Extension_8_0BAE
- ' Set the gravity to 0,5. Try other values.
- Extension_8_0B78 0,5
- ' Now at last, initiate the stars.
- Extension_8_0AD0
- ' Main loop: Repeat until the user presses a key or a mouse button.
- Repeat
- ' Synchronisize with the raster beam.
- Wait Vbl
- XM=X Screen(X Mouse) : YM=Y Screen(Y Mouse)
- Extension_8_0AB8 XM,YM
- ' Draw all the stars.
- Extension_8_0AFC
- ' Swap the screens.
- Screen Swap
- Until Inkey$=Chr$(27) or Mouse Key<>0
- Screen Close 0
- End